﻿		//把文件名称改为超链接	var renderDoc = function(val, metaData, record) {		JxUtil.tmpDownFile = function(attach_id){			var uploadType = Jxstar.systemVar.uploadType || '0';			var uploadUrl = Jxstar.systemVar.uploadUrl || '';						var params = 'funid=sys_attach&keyid='+ attach_id +'&pagetype=editgrid&eventcode=down&nousercheck=1';			//发送下载请求			if (uploadType == '1') {				var url = uploadUrl + '/fileAction.do?' + params + '&dataType=byte';				Ext.fly('frmhidden').dom.src = url;			} else {				Request.fileDown(params);			}		};					var attach_id = record.get('sys_attach__attach_id');		var chgcolor = 'onmouseover="this.style.color=\'#FF4400\';" onmouseout="this.style.color=\'#0080FF\';"';		var html = '<a href="#" style=\'color:#0080FF;\' '+ chgcolor +' onclick="JxUtil.tmpDownFile(\''+ attach_id +'\');">'+ val +'</a>';		return html;	};		//把第一列的值改为超链接	cols[0].col.renderer = renderDoc;	